﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutList.cshtml";
}

<style type="text/css">
      .layui-form-label {
        width: 100px;
    }

    .layui-input-block{
        width:300px
    }

</style>
<div class="admin-main">
    <blockquote class="layui-elem-quote p10">
        <form id="formSearch" class="layui-form" action="/DataSrv/AuthPlatForm/Add" method="post">
            <div class="layui-fluid">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md12">
                        <div class="layui-card-header">亚马逊平台</div>
                        <label class="layui-form-label"><span class="fRed">*</span>店铺名称:</label>
                        <div class="layui-input-block">
                            <input name="ShopName" id="Icon" lay-verify="required" lay-vertype="tips" class="layui-input" type="text" />
                        </div>
                        <label class="layui-form-label"><span class="fRed">*</span>Amazon账号:</label>
                        <div class="layui-input-block">
                            <input name="AmazonAccount" id="Icon" lay-verify="required" lay-vertype="tips" class="layui-input" type="text" placeholder="Amazon注册邮箱" />
                        </div>

                        <label class="layui-form-label"><span class="fRed">*</span>Merchant ID：</label>
                        <div class="layui-input-block">
                            <input name="MerchantId" id="Icon" lay-verify="required" lay-vertype="tips" class="layui-input" type="text" placeholder="卖家编号" />
                        </div>
                        <label class="layui-form-label"><span class="fRed">*</span>MWSAuthToken：</label>
                        <div class="layui-input-block">
                            <input name="AuthToken" id="Icon" lay-verify="required" lay-vertype="tips" class="layui-input" type="text" placeholder="MWS授权令牌" />
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit="" lay-filter="submitForm" id="submitForm">确认保存</button>
                            <div class="div-msg fl" style="float:left;">@ViewBag.Msg</div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </blockquote>
</div>
<script type="text/javascript">
    layui.use(['table', 'common', 'form', 'tablePlug', 'optimizeSelectOption'], function () {
        var table = layui.table,
            form = layui.form,
            common = layui.common,
             $ = layui.$;
        
        submitForm(form, "更新成功"); //监听提交
    });
</script>


